import request from '@/utils/request'

// 金融产品列表列表
export function listProduct(query) {
  return request({
    url: '/finance/product/list',
    method: 'get',
    params: query
  })
}

// 金融产品审核
export function auditingProduct(data) {
  return request({
    url: '/finance/product/auditing',
    method: 'post',
    data:data
  })
}

// 金融产品添加
export function addProduct(data) {
  return request({
    url: '/finance/product',
    method: 'post',
    data: data
  })
}

// 金融产品废除
export function delProduct(id) {
  return request({
    url: '/finance/product/' + id,
    method: 'get'
  })
}

// 融资申请列表
export function listFinancing(query) {
  return request({
    url: '/finance/financingApplication/list',
    method: 'get',
    params: query
  })
}

//租房合同列表
export function listContract(query) {
  return request({
    url: '/finance/factoring/contractList',
    method: 'get',
    params: query
  })
}

// 租约保理产品列表
export function listFactoring() {
  return request({
    url: '/finance/factoring/productList',
    method: 'get',
  })
}
//金融数据统计
export function detailsOfFactoringApplication(data) {
  return request({
    url: '/finance/factoring/detailsOfFactoringApplication',
    method: 'post',
    data: data
  })
}
//添加租约保理
export function saveFactoring(data) {
  return request({
    url: '/finance/factoring/saveFactoring',
    method: 'post',
    data: data
  })
}
//省份列表
export function regionList() {
  return request({
    url: '/finance/factoring/regionList',
    method: 'get',
  })
}
//银行列表
export function bankList() {
  return request({
    url: '/finance/factoring/bankList',
    method: 'get',
  })
}


//收房合同查询
export function sfList(query) {
  return request({
    url: '/finance/contract/sfList',
    method: 'get',
    params: query
  })
}



//金融产品选择
export function getProduct(){
  return request({
    url:'/finance/contract/getProduct',
    method:'get',
  })
}

